const rand = (start = 1, end = 100) => {
  return Math.round(Math.random() * (end - start) + start)
}
export default function getData (length) {
  const data = []
  for (let i = 0; i < length - 1; i++) {
    data.push({
      id: i + 1,
      comprehensiveCurrentPeriod: rand(),
      comprehensiveActualPeriod: rand(),
      comprehensiveYearOnYear: rand(),
      comprehensiveGrowthValue: rand(),
      comprehensiveProportion: rand(),
      coalCurrentPeriod: rand(),
      coalActualPeriod: rand(),
      coalYearOnYear: rand(),
      coalGrowthValue: rand(),
      coalProportion: rand(),
      electricCurrentPeriod: rand(),
      electricActualPeriod: rand(),
      electricYearOnYear: rand(),
      electricGrowthValue: rand(),
      electricProportion: rand(),
      electricProductCurrentPeriod: rand(),
      electricProductActualPeriod: rand(),
      electricProductYearOnYear: rand(),
      electricProductGrowthValue: rand(),
      electricProductProportion: rand(),
      industryComprehensiveCurrentPeriod: rand(),
      industryComprehensiveActualPeriod: rand(),
      industryComprehensiveYearOnYear: rand(),
      industryComprehensiveGrowthValue: rand(),
      industryComprehensiveProportion: rand(),
    })
  }
  return data
}
